#ifndef MANAGER_H
#define MANAGER_H

#include<QObject>
#include"view/mainwidget.h"
#include"openview.h"
#include"view/setwidget.h"
#include"view/loginwidget.h"
#include"contrl/mycontrol.h"
#include"view/photoviewwidget.h"
#include"view/videoreolaywidget.h"
#include"view/transcodewidget.h"
#include"view/videoselectwidget.h"
#include"view/logwidget.h"
class Manager : public QObject
{
    Q_OBJECT
public:
    explicit Manager(QObject *parent = nullptr);

    ~Manager();


    bool selectDatabase();
    void start();

private:
    OpenView*w=nullptr;
    MainWidget*main=nullptr;
    SetWidget*setWin=nullptr;
    LoginWidget*loginWin=nullptr;
    PhotoViewWidget*photoWin=nullptr;
    VideoSelectWidget*videoWin=nullptr;
    TranscodeWidget*transcodWin=nullptr;
    LogWidget*logWin=nullptr;

    MyControl* con;
    BaseModel*model;


signals:

public slots:

   void onAnimationOpenToset();

   void setEnsureFinished();

   void onAnimationOpenTomain();

   void TosetWidget();

   void receptionLogin();


   void TologinWidget(int sign);


   void LoginToWhere(int index);
   void LoginToMain();

   void MainToPicture();

   void PictureToMain();

   void MainToVideoSelect();
   void VideoSelectToMain();

   void MainToTransCode();
   void TransCodeToMain();

   void LogToMain();

   void MainToLog();






};

#endif // MANAGER_H
